package com.david.cms.dao;

import com.david.basic.model.Pager;
import com.david.cms.model.Member;

public interface IMemberDao {
	/**
	 * 添加会员信息
	 * 
	 * @param member
	 * @throws Exception
	 */
	public void addMember(Member member) throws Exception;

	/**
	 * 查询会员
	 * 
	 * @param member
	 * @throws Exception
	 */
	public Member searchMember(int id) throws Exception;

	/**
	 * 会员登陆
	 * 
	 * @param member
	 * @throws Exception
	 */
	public Member login(String loginName, String password) throws Exception;

	/**
	 * 开发商查询
	 */
	public Pager<Member> searchMemberByPage(Pager pager);

	/**
	 * 删除用户
	 */
	public void deleteMember(int id);

	/**
	 * 查看用户名是否存在
	 */

	public Member isUse(String loginName);

	/**
	 * 查看用户名是否存在
	 */

	public void updateMember(Member member);

}
